package com.asiainfo.dacp.datastash.broker.core.enums;

import com.asiainfo.dacp.util.enums.AbstractEnum;
import com.asiainfo.dacp.util.enums.Enums;
import lombok.NoArgsConstructor;

/**
 *
 * @author MeiKefu
 * @date 2017-12-13
 */
@Enums("datastash:unit:state")
@NoArgsConstructor
public class UnitStateEnum extends AbstractEnum {

    public static UnitStateEnum
    
    		INIT = new UnitStateEnum("1","新建"),
    		RUNNABLE =  new UnitStateEnum("2","可运行"),
    		RUNNING =  new UnitStateEnum("3","正在运行"),
    		BLOCKED_RESOURCE = new UnitStateEnum("4","资源阻塞"),
    		BLOCKED_RELAY = new UnitStateEnum("5","依赖阻塞"), 
    		SUCESS = new UnitStateEnum("6","成功"),
    		FAIL =  new UnitStateEnum("-1","失败")
    ;
    
    
    public static UnitStateEnum	
    		RUNNING_COMPILE = new UnitStateEnum("316","编译完成")
    ;
    
    /*
    	UnInitialization = new UnitStateEnum("9","未运行"),
    	
        Initialization = new UnitStateEnum("0","新建"),
        Begin = new UnitStateEnum("8","流程开始"),  
        
        Failed = new UnitStateEnum("-1","失败"),
        Success = new UnitStateEnum("1","成功"),
        Processing = new UnitStateEnum("2","处理"),
        Waiting = new UnitStateEnum("3","等待");
        */

    private UnitStateEnum(String value,String label){
        super(value,label);
    }
}
